﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace Web612.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ClassificationController : ControllerBase, IClassificationBll
    {
         public ClassificationController(IClassificationBll bll)
        {
            Bll = bll;
        }


        public IClassificationBll Bll { get; }

        [HttpGet]
        public List<Classification> classifications()
        {
             return Bll.classifications();
        }
    }
}
